import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from google.appengine.ext import db

import os,re,datetime,sys, calendar,cgi,random

#       http://www.fiveriversyoga.com/a-dedicated-life-practice

class MainHandler(webapp.RequestHandler):
  def Write(self,t):
    self.response.out.write(t)

  def Writeln(self,t):
    self.response.out.write(str(t)+"\n")

  def get(self):

    template_values = {
#              'LoginForm' : library.LoginForm(),
#              'TopTen': topten
    }


    path = os.path.join(os.path.dirname(__file__), 'sbflyer.html')
    self.response.out.write(template.render(path, template_values))


def main():
  application = webapp.WSGIApplication(
                                       [('/sbflyer', MainHandler),
                                       ],
                                       debug=True)

  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
  main()
